package com.edu.hre.struts.form.recruit;

import java.util.Date;

import org.apache.struts.action.ActionForm;

import com.edu.hre.common.utils.CommonUtils;

public class CanLicenseForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6056273106708257020L;
	private int id;
	private int canId;
    private String licenseType;
    private String licenseNo;
    private Date issuedDate;
    private Date expiryDate;
    
    private boolean isSelected = false;

	public boolean isSelected() {
		return isSelected;
	}

	public void setSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}
	
	public boolean getIsSelected() {
		return isSelected;
	}

	public void setIsSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getLicenseType() {
		return licenseType;
	}

	public void setLicenseType(String licenseType) {
		this.licenseType = licenseType;
	}

	public String getIssuedDate() {
		return CommonUtils.dateToString(issuedDate);
	}

	public void setIssuedDate(String issuedDate) {
		this.issuedDate = CommonUtils.stringToDate(issuedDate);
	}

	public String getExpiryDate() {
		return CommonUtils.dateToString(expiryDate);
	}

	public void setExpiryDate(String expiryDate) {
		this.expiryDate = CommonUtils.stringToDate(expiryDate);
	}

	public String getLicenseNo() {
		return licenseNo;
	}

	public void setLicenseNo(String licenseNo) {
		this.licenseNo = licenseNo;
	}

	public int getCanId() {
		return canId;
	}

	public void setCanId(int canId) {
		this.canId = canId;
	}
}
